/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cp2004_assignment1;

/**
 *
 * @author zhaoyingxi JCU Student Number: 11839209
 */
public class Product {

    private String name;
    private String info;
    private int quantity;
    private ItemArr arr;

    public String toString() {
        return "name=" + name + ", info=" + info + " ,quantity=" + quantity;
    }

    public Product() {
        arr = new ItemArr();
    }

    public void addItem(Item addi) {
        arr.add(addi);
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the info
     */
    public String getInfo() {
        return info;
    }

    /**
     * @param info the info to set
     */
    public void setInfo(String info) {
        this.info = info;
    }

    /**
     * @return the quantity
     */
    public int getQuantity() {
        return quantity;
    }

    /**
     * @param quantity the quantity to set
     */
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    /**
     * @return the arr
     */
    public ItemArr getArr() {
        return arr;
    }

    /**
     * @param arr the arr to set
     */
    public void setArr(ItemArr arr) {
        this.arr = arr;
    }
}
